from flask import Flask,url_for

app=Flask(__name__)

@app.route('/')
def hello():
    return 'hello world'

def list():
    return 'this is list'

app.add_url_rule(rule='/list',endpoint='list1',view_func=list)

if __name__=='__main__':
    app.run()